.NET Framework Class Library |
ConcurrentQueue<(Of <(T>)>)..::.Count Property |
ConcurrentQueue<(Of <(T>)>) Class See Also Send Feedback |
Gets the number of elements contained in the ConcurrentQueue<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property Count As Integer |
C# |
---|
public int Count { get; } |
Field Value
The number of elements contained in the ConcurrentQueue<(Of <(T>)>).Implements
ICollection..::.CountRemarks
For determining whether the collection contains any items, use of the IsEmpty
property is recommended rather than retrieving the number of items from the Count
property and comparing it to 0.